/*******************************************************************************
 * Copyright 卫志强 QQ：598748873@qq.com Inc. All rights reserved. 开源地址：https://gitee.com/doc_wei01/skyeye
 ******************************************************************************/

package com.skyeye.meal.classenum;

import com.skyeye.common.base.classenum.SkyeyeEnumClass;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @ClassName: ShopMealOrderType
 * @Description: 套餐订单来源枚举类
 * @author: skyeye云系列--卫志强
 * @date: 2024/5/13 17:18
 * @Copyright: 2024 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
 * 注意：本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum ShopMealOrderState implements SkyeyeEnumClass {

    NO_PAYING(1, "待支付","red", true, false),
    PAY(2, "已支付","green", true, false);

    private Integer key;

    private String value;

    private String color;

    private Boolean show;

    private Boolean isDefault;

    public static List<Integer> getAllKey() {
        return Arrays.stream(ShopMealOrderState.values()).map(ShopMealOrderState::getKey).collect(Collectors.toList());
    }

}
